package com.koron.order.inspect.mapper;

import com.koron.order.inspect.bean.po.OrderInspectionPo;
import com.koron.order.inspect.bean.query.OrderInspectionQuery;
import com.koron.order.inspect.bean.vo.OrderInspectionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 工单抽查意见表(OrderInspection)表数据库访问层
 *
 * @author zhouj
 * @since 2022-01-14 10:16:20
 */
public interface OrderInspectionMapper {

    int insertOrUpdate(OrderInspectionPo orderInspection);

    int insertOrUpdateBatch(@Param("list") List<OrderInspectionPo> orderInspectionList);

    int insert(OrderInspectionPo orderInspection);

    int insertBatch(@Param("list") List<OrderInspectionPo> orderInspectionList);

    int update(OrderInspectionPo orderInspection);

    int deleteById(String id);

    OrderInspectionPo queryById(String id);

    List<OrderInspectionPo> queryList(OrderInspectionPo orderInspection);

    List<OrderInspectionVo> queryInspectPageList(OrderInspectionQuery inspectionQuery);

    List<OrderInspectionVo> queryInspectPatrolPageList(OrderInspectionQuery inspectionQuery);
}